# 集群管理
# 获取token
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')

# Dashboard
# 查看地址
kubectl get svc --namespace=kube-system|grep dashboard
# 访问
https://192.168.1.222:39061/
# 扩容/缩容
kubectl scale deployment keter-service --replicas=3
# 版本升级-滚动更新
# 更新状态查看：
kubectl rollout status deployment/keter-service
# 编辑文件
kubectl edit deployment/keter-service
# 升级镜像
kubectl set image deployment/keter-service keter-service=keter-service:new-version
# 撤销(最近一次)更新
kubectl rollout undo deployment/keter-service
# 查看更新历史(配合 --record 可显示CHANGE-CAUSE内容)
kubectl rollout history deployment/keter-service
kubectl rollout history deployment/keter-service --revision=xxx

